package dao;

import java.util.List;
import java.io.IOException;
import bean.Traveler;
import exception.DAOException;

public interface TravelerDAO {

	List<Traveler> viewTravelers() throws DAOException;

	List<Traveler> viewTravelerByFlight(int flightId) throws DAOException;

	boolean createTraveler(String firstName, String lastName, String userName,
			String password, String addressLine1, String addressLine2,
			String city, String state, String dateOfBirth, long id,
			String type, String passportNumber, String nationality,
			long created_by, String created_on, long updated_by,
			String updated_on, long zip) throws DAOException;

	void deleteTraveler(long id) throws DAOException;

	void updateTraveler(String firstName, String lastName, String userName,
			String password, String addressLine1, String addressLine2,
			String city, String state, String dateOfBirth, long id,
			String type, String passposrtNumber, String nationality,
			long created_by, String created_on, long updated_by,
			String updated_on, long zip) throws DAOException;
	
	Traveler getTravelerDetails(long id) throws DAOException;

/*	List<Traveler> searchTravelers(String firstName, String lastName, long id,
			String passportNumber) throws DAOException,
			IOException; */

}
